import request from "@/request/api"

export function login(number:number,password:string){
        return request({
                url:'',
                method:'post',
                params:{
                        number,
                        password
                }
        })
} 

export function pageWell(){
        return request({
                url:'/pageWell',
                method:'get'
        })
}

export function addWell(addWellName:string,wellType:string,addWellDepth:number,addwellDiameter:number,addwellDate:string) {
        return request({
                url:'/addWell',
                method:'post',
                params:{
                        addWellName,wellType,addWellDepth,addwellDiameter,addwellDate
                }
        })
}

export function updateWell(updateWellName:string,wellType:string,updateWellDepth:number,updateDiameter:number){
        return request({
                url:'',
                method:'post',
                params:{
                        updateWellName,wellType,updateWellDepth,updateDiameter
                }
        })
}